home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / strategy / xpat2-1.000 / xpat2-1 / xpat2-1.04 / src / Tableau.h < prev    next >
C/C++ Source or Header  |  1995-10-12  |  4KB  |  117 lines

  1. /* $XConsortium: Tableau.h,v 1.5 90/12/19 18:46:00 converse Exp $ */
  2.  
  3. /* Copyright    Massachusetts Institute of Technology    1987, 1988
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and its
  6.  * documentation for any purpose is hereby granted without fee, provided that
  7.  * the above copyright notice appear in all copies and that both that
  8.  * copyright notice and this permission notice appear in supporting
  9.  * documentation, and that the name of M.I.T. not be used in advertising or
  10.  * publicity pertaining to distribution of the software without specific,
  11.  * written prior permission.  M.I.T. makes no representations about the
  12.  * suitability of this software for any purpose.  It is provided "as is"
  13.  * without express or implied warranty.
  14.  *
  15.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  16.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  17.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  19.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  20.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  21.  *
  22.  */
  23.  
  24. #ifndef _Tableau_h
  25. #define _Tableau_h
  26.  
  27. /****************************************************************
  28.  *
  29.  * Tableau widget
  30.  *
  31.  ****************************************************************/
  32.  
  33. /* Resources:
  34.  
  35.  Name             Class        RepType        Default Value
  36.  ----             -----        -------        -------------
  37.  background         Background        Pixel        XtDefaultBackground
  38.  border             BorderColor    Pixel        XtDefaultForeground
  39.  borderWidth         BorderWidth    Dimension    1
  40.  destroyCallback     Callback        Pointer        NULL
  41.  height             Height        Dimension    0
  42.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  43.  sensitive         Sensitive        Boolean        True
  44.  width             Width        Dimension    0
  45.  x             Position        Position    0
  46.  y             Position        Position    0
  47.  
  48.  Name             Class        RepType        Default Value
  49.  ----             -----        -------        -------------
  50.  cbcolor         Background        Pixel        XtDefaultBackground
  51.  
  52. */
  53.  
  54. /* define any special resource names here that are not in <X11/StringDefs.h> */
  55. #define XtNruleset    "rules"
  56. #define XtCRuleset    "Rules"
  57. #define XtNxpmdir    "xpmdir"
  58. #define XtCXpmdir    "Xpmdir"
  59. #define XtNcardset    "cards"
  60. #define XtCCardset    "Cards"
  61. #define XtNfaceup    "faceup"
  62. #define XtCFaceup    "Faceup"
  63. #define XtNfacedown    "facedown"
  64. #define XtCFacedown    "Facedown"
  65. #define XtNdecks    "decks"
  66. #define XtCDecks    "Decks"
  67. #define XtNslots    "slots"
  68. #define XtCSlots    "Slots"
  69. #define XtNjokers    "jokers"
  70. #define XtCJokers    "Jokers"
  71. #define XtNtmps         "tmps"
  72. #define XtCTmps     "Tmps"
  73. #define XtNparam0    "relaxed"
  74. #define XtNparam1    "flips"
  75. #define XtNparam2    "turn"
  76. #define XtNparam3    "rotations"
  77. #define XtCParam    "Param"
  78. #define XtNfaceup    "faceup"
  79. #define XtCFaceup    "Faceup"
  80. #define XtNmessageFile    "messageFile"
  81. #define XtCMessageFile    "MessageFile"
  82. #define XtNkeyboardFile    "keyboardFile"
  83. #define XtCKeyboardFile    "KeyboardFile"
  84.  
  85. #define XtNgapx        "gapx"
  86. #define XtNgapy        "gapy"
  87. #define XtCGap        "Gap"
  88. #define XtNarrw        "arrowWidth"
  89. #define XtNarrh        "arrowHeight"
  90. #define XtCArr        "Arrowsize"
  91.  
  92. #define XtNcbColor    "cardbackColor"
  93. #define XtCCbColor    "CardbackColor"
  94. #define XtNcbPixmap    "cardbackPixmap"
  95. #define XtCCbPixmap    "CardbackPixmap"
  96. #define XtNarColor    "arrowColor"
  97. #define XtCArColor    "ArrowColor"
  98. #define XtNmaColor    "markColor"
  99. #define XtCMaColor    "MarkColor"
  100. #define XtNmaWidth    "markWidth"
  101. #define XtCMaWidth    "MarkWidth"
  102. #define XtNredColor    "redColor"
  103. #define XtCRedColor    "RedColor"
  104. #define XtNrng        "rng"
  105. #define XtCRng        "Rng"
  106.  
  107. /* declare specific TableauWidget class and instance datatypes */
  108.  
  109. typedef struct _TableauClassRec*    TableauWidgetClass;
  110. typedef struct _TableauRec*        TableauWidget;
  111.  
  112. /* declare the class constant */
  113.  
  114. extern WidgetClass tableauWidgetClass;
  115.  
  116. #endif /* _Tableau_h */
  117.